package edu.xust.service;


import edu.xust.dto.BaseDto;
import edu.xust.entity.Drivers;
import edu.xust.page.PageInfo;

public interface DriversService {


    public BaseDto getDriversByPage(PageInfo pageInfo) throws Exception;

    /**
     * 添加司机
     * @param drivers
     * @return
     * @throws Exception
     */
    public BaseDto addDrivers(Drivers drivers);

    /**
     * 根据id查询单个司机
     * @param id
     * @return
     * @throws Exception
     */
    public BaseDto getDriverById(String id) throws Exception;

    /**
     * 根据司机编号查询货单信息
     * @param id
     * @return
     * @throws Exception
     */
    public BaseDto getDriversWithOrder(String id) throws Exception;


    /**
     * 修改司机信息
     *
     * @param drivers
     * @return
     */
    public BaseDto editDrivers(Drivers drivers);

    /**
     * 根据id删除司机
     *
     * @param id
     * @return
     */
    public BaseDto deleteDrivers(String id);
}
